<template>
  <el-breadcrumb>
    <transition-group name="breadcrumb">
      <el-breadcrumb-item
        v-for="item in tagStore.breadcrumb"
        :key="item.menuPath"
      >
        {{ item.name }}
      </el-breadcrumb-item>
    </transition-group>
  </el-breadcrumb>
</template>

<script setup>
import useTagStore from '@/store/tags'

const tagStore = useTagStore()
</script>

<style lang="scss" scoped>
.breadcrumb-leave-from{
  display: none;
}
.breadcrumb-enter-active {
  transition: all .6s ease;
}

.breadcrumb-enter-from {
  opacity: 0;
  transform: translateX(20px);
}

</style>
